package com.yufuchang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springboot023ConfigbeanApplication {

	public static void main(String[] args) {
//		SpringApplication.run(Springboot023ConfigbeanApplication.class, args);
		ConfigurableApplicationContext context
				= SpringApplication.run(Springboot023ConfigbeanApplication.class, args);
		MyTestBean myBean = (MyTestBean) context.getBean("myTestBean");
		System.out.println(myBean.get());
	}

}
